Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only send one report for a response with deferred responses #1576

Merged
merged 5 commits into from
Aug 23, 2022

Conversation

Geal
Copy link
Contributor

@Geal Geal commented Aug 23, 2022

it must measure the latency of the entire operation

it must measure the latency of the entire operation
@github-actions

This comment has been minimized.

Co-authored-by: Jeremy Lempereur <jeremy.lempereur@gmail.com>
@Geal Geal requested a review from BrynCooke August 23, 2022 09:37
the axum response serializer was dropping the following response after
the first one if it did not have has_next=true, but that last response
was still incorrectly generated
.in_current_span()
.boxed(),
if can_be_deferred {
stream.chain(once(ready(Response::builder().has_next(false).build()))).left_stream()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@o0Ignition0o o0Ignition0o enabled auto-merge (squash) August 23, 2022 12:33
@o0Ignition0o o0Ignition0o merged commit 62fd65e into main Aug 23, 2022
@o0Ignition0o o0Ignition0o deleted the geal/defer-studio branch August 23, 2022 12:52
@Geal Geal self-assigned this Aug 24, 2022
@abernix abernix mentioned this pull request Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants